Skip to content

Use vercelRunOutcome in Vercel AI SDK Core framework guide#3443

Open
rainbowFi wants to merge 1 commit into
mainfrom
fix/ait-1034-vercel-run-outcome
Open

Use vercelRunOutcome in Vercel AI SDK Core framework guide#3443
rainbowFi wants to merge 1 commit into
mainfrom
fix/ait-1034-vercel-run-outcome

Conversation

@rainbowFi

@rainbowFi rainbowFi commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes AIT-1034.

The Vercel AI SDK Core framework guide piped the model stream and called run.end({ reason }) directly, skipping vercelRunOutcome. This diverged from the getting started guide and the 0.2.0 blog post, both of which route the pipe result through vercelRunOutcome before ending the run.

Changes

  • Updated the before/after contrast snippet and the full agent route to use vercelRunOutcome.
  • Added vercelRunOutcome to the import.
  • Updated the "three pieces" explanation to describe the outcome handling, linking the vercelRunOutcome reference.

The agent route snippets piped the stream and called run.end({ reason })
directly, skipping vercelRunOutcome. This diverged from the getting started
guide and the 0.2.0 blog post, and dropped tool-call suspension and the
finishReason rejection guard. Align both snippets and the explanation with
the canonical pattern.

Fixes AIT-1034
@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 742ec25b-08e2-498d-892f-43281b992e66

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ait-1034-vercel-run-outcome

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@rainbowFi rainbowFi requested a review from VeskeR June 24, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants